"""
题目6：斐波那契数列。
"""

"""
题目11：古典问题：有一对兔子，从出生后第3个月起每个月都生一对兔子，小兔子长到第三个月后每个月又生一对兔子，假如兔子都不死，问每个月的兔子总数为多少？
(也是斐波那契数列的一种)
"""


def all_num(n):
    if n <= 2:
        num = 1
        return num
    else:
        dangqian = 1
        longgong = 1
        for i in range(3, n+1):
            longgong, dangqian = dangqian, dangqian+longgong
            print(longgong, dangqian)
        return dangqian


print(all_num(6))
